package com.hdy.net.retrofit;

import com.hdy.common.statistics.HdyStatistics;

public abstract class CallBack {
    public void onStart(){}

    public void onCompleted(){}

    public void onError(Throwable e) {
        HdyStatistics.getInstance().onError(e);
    }

    public void onProgress(long fileSizeDownloaded){}

    abstract public void onSuccess(String path, String name, long fileSize);
}
